package com.base.service.workflow.service;

import com.base.core.framework.sql.service.SqlBaseService;
import com.base.core.head.enums.TaskTypeEnum;
import com.base.service.workflow.entity.TaskDO;
import com.gitee.magic.core.json.JsonObject;

/**
 * @author start 
 */
public interface TaskService extends SqlBaseService<TaskDO,Long> {

	/**
	 * 获取仅有一个任务的事件
	 * @param deploymentId
	 * @param taskType
	 * @return
	 */
	TaskDO getTaskEvent(Long deploymentId,TaskTypeEnum taskType);
	
	/**
	 * 获取下一节点
	 * @param taskId
	 * @param variables
	 * @return
	 */
	TaskDO nextTask(Long taskId, JsonObject variables);
	
}
